import Home from "@/views/Home";
import Blog from "@/views/Blog";
import About from "@/views/About";
import Code from "@/views/Code";
import Comment from "@/views/Comment";
import Todo from "@/views/Todo";
import Unknown from "@/views/Unknown";
import detail from "@/views/Blog/detail";

export const routes = [
  { name: "Home", path: "/", component: Home },
  { name: "Blog", path: "/blog", component: Blog },
  { name: "BlogCate", path: "/blog/cate/:categoryid", component: Blog },
  { name: "BlogDetail", path: "/blog/:id", component: detail },
  { name: "About", path: "/about", component: About },
  { name: "Code", path: "/code", component: Code },
  { name: "Comment", path: "/comment", component: Comment },
  { name: "Todo", path: "/todo", component: Todo },
  { name: "Unknown", path: "/unknown", component: Unknown },
];